/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.sll.service.catalogue.idmap.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 *
 * @author khaleddaham
 */
@SuppressWarnings("PMD.UnusedPrivateField")
@Entity
@Data
@Table(name="hsa", uniqueConstraints={@UniqueConstraint(columnNames={"hsaId"})})
@NoArgsConstructor()
public class HSAEntity implements Serializable {
    
    public HSAEntity(String hsaId, String ekId, String relativeDistinguishedName, String sklId) {
        this.hsaId = hsaId;
        this.ekId = ekId;
        this.relativeDistinguishedName = relativeDistinguishedName;
        this.sklId = sklId;
    }

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Getter(AccessLevel.NONE)
    @Setter(AccessLevel.NONE)
    private Long id;
    @NotNull
    private String hsaId;
    private String ekId;
    private String sklId;
    private boolean allowExport;
    private String relativeDistinguishedName;
}
